LoLA ADOxxWEB API

The LoLA ADOxxWEB API is an implementation of a webservice wrapper for the LoLA (Low Level Petri net Analyzer) as provided for download (http://www.service-technology.org/lola/index.html). To enable integration of the LoLA functionality, the tool has been compiled from source code and a wrapper implementation to enable SOAP and ReST interaction is made available.

License details for LoLA and the wrapper implementation are available here

Details

The implementation architecture of the wrapper service is detailed in this section. In case you want to see the source code in action, please switch to the "Extend" section.

View details »

Use

In case you are interested in calling the service from your own implementation, please have a look at the following section. Different integration clients and examples showcase the general applicablility.

View details »

Extend

In this seciton, access to the source code is granted. You can download the source package, deploy LoLA on your own infrastructure and change the way the wrapper servic e is working.

View details »


Details

The LoLA Wrapper service is implemented as a remote web-service, that allows to trigger LoLA analytical mechanisms through standardized web-service protocols. As such it uses an arbitrary installation of LoLA in a Linux environment as a basis (LoLA functionality and implementation is used as-is, the source code as provided online has been compiled and installed). Using a Java-based implementation, and JAX as a web-service layer, the endpoints are exposed dynamically using annotations for SOAP and ReST.

The wrapper service can be tested and verified using Swagger UI that provides a user interface for the service endpoint. This interfaces is available here. The SOAP specificiation (in WSDL format) and ReST (in WADL format) are accessible here for integration.

Resources:


Use

The wrapper can be called and used remotely using standard mechanisms to interact with web-services. In the following, the steps required to include the functionality in an ADOxx-based tool are shown:

1. Download resources

3 files need to be available in your ADOxx library (to get all in a package, use the ZIP download below):
  • RemoteLoLA.asc: this AdoScript enables the communication between your tool and the web-service. It acts as a client to send the content/network to the service, and show the result report for the defined formula/options.
  • wget.exe: to enhance the platform functionality, the wget.exe is needed to run downloads/crawls of the results. You can download wget.exe from the developer (http://gnuwin32.sourceforge.net/packages/wget.htm) or as part of the package below.
  • curl.exe: to enhance the platform functionality, the curl.exe is needed to run uploads of input files to the server. You can download curl.exe from the developer (http://curl.haxx.se/) or as part of the package below.

Download package »

2. Extract Archive and Import into Your ADOxx Library

Extract the package of above on your local hard-drive and import the 3 files contained into your library (see Video Tutorial)

3. Add Menu Entry to Trigger Client

Add the following lines to your library configuration (Dynamic Library -> Library attributes -> External coupling) to add a new menu entry. Alternatively you can also trigger the service from a button or programmcall (details on triggering an AdoScript can be found online here).

#################################################################
######## REMOTE DOCUMENTATION TRIGGER ########
#################################################################
ITEM "Run LoLA analysis" modeling:"Model verification"
SETG sRemoteLoLAURL:"https://www.adoxx.org/LOLAService/"
EXECUTE file:("db:\\RemoteLoLA.asc")


Extend

The wrapper source code is available via ADOxx.org. Please consider the license conditions as outlined here for the included LoLA exectuable as well as components used to realize the service.

Hints:
Please consider the following configuration entry in "context.xml":

Resources: